<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/11/2
  Time: 9:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@include file="/WEB-INF/admin/public/header.jsp"%>
<!-- 主要内容区域 -->
<div class="container-fluid">
    <div class="row">
        <%@include file="/WEB-INF/admin/public/menu.jsp"%>
        <!-- 数据表格 -->
        <div class="col-md-9 col-sm-9">
            <ol class="breadcrumb">
                <li><a href="#">首页</a></li>
                <li class="active">电影列表</li>
            </ol>
            <div class="panel panel-primary">
                <div class="panel-heading">电影列表</div>
                <div class="panel-body">
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <td>电影名称</td>
                            <td>海报</td>
                            <td>上映时间</td>
                            <td>主演</td>
                            <td>类型</td>
                            <td>标签</td>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${pageInfo.list}" var="m">
                        <tr>
                            <td>${m.mname}</td>
                            <td><img src="${m.poster}" style="width:100px;"></td>
                            <td>${m.publishdate}</td>
                            <td>${m.actor}</td>
                            <td>${m.gyne}</td>
                            <td>${m.tags}</td>
                        </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <ul class="pagination">
                        <c:if test="${!pageInfo.isFirstPage}">
                            <li><a href="/movie/list.do?pageNum=${pageInfo.firstPage}">首页</a></li>
                        </c:if>
                        <c:if test="${pageInfo.hasPreviousPage}">
                            <li><a href="/movie/list.do?pageNum=${pageInfo.prePage}">&laquo;</a></li>
                        </c:if>
                        <c:forEach items="${pageInfo.navigatepageNums}" var="p">
                            <li><a href="/movie/list.do?pageNum=${p}">${p}</a></li>
                        </c:forEach>
                        <c:if test="${pageInfo.hasNextPage}">
                            <li><a href="/movie/list.do?pageNum=${pageInfo.nextPage}">&raquo;</a></li>
                        </c:if>
                        <c:if test="${!pageInfo.isLastPage}">
                            <li><a href="/movie/list.do?pageNum=${pageInfo.lastPage}">末页</a></li>
                        </c:if>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="copyright text-center">&copy;&nbsp;<a href="http://www.ittaoli.com">桃李科技</a></div>
<%@include file="/WEB-INF/admin/public/footerjs.jsp"%>
<script src="${pageContext.request.contextPath}/admin/js/main.js"></script>
<%@include file="/WEB-INF/admin/public/footer.jsp"%>




